package com.fzshang.commen.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

/**
 * <p>
 * 属性分类
 * </p>
 *
 * @author 冯政尚
 * @since 2020-02-24
 */
@ToString
@ApiModel(value="Attribute对象", description="属性分类")
public class Attribute extends Model<Attribute> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "属性名称")
    @TableField("attribute")
    private String attribute;

    @ApiModelProperty(value = "属性分类id")
    @TableField("attribute_classification_id")
    private Long attributeClassificationId;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "分类名称")
    @TableField(exist = false)
    private String attributeClassification;

    public String getAttributeClassification() {
        return attributeClassification;
    }

    public void setAttributeClassification(String attributeClassification) {
        this.attributeClassification = attributeClassification;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getAttribute() {
        return attribute;
    }

    public void setAttribute(String attribute) {
        this.attribute = attribute;
    }
    public Long getAttributeClassificationId() {
        return attributeClassificationId;
    }

    public void setAttributeClassificationId(Long attributeClassificationId) {
        this.attributeClassificationId = attributeClassificationId;
    }
    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Attribute{" +
            "id=" + id +
            ", attribute=" + attribute +
            ", attributeClassificationId=" + attributeClassificationId +
            ", createTime=" + createTime +
        "}";
    }
}
